<template>
  <div class="card-item">
    <div class="card-title">
      <div class="card-title">
        <div :class="['title-content',data.info.count?'':'fade-style']">{{ data.info.count }}人</div>
        <!-- <div :class="['title-description']" /> -->
      </div>
    </div>
    <div class="card-summary">
      <div class="card-summary-title">
        <span>{{ data.alias }}</span>
        <TypeInParty v-if="data.target" :type="data.target" />
        <el-tag v-if="data.bindConference">会议</el-tag>
      </div>
      <div
        class="card-summary-decription"
      >{{ (data.description && data.description.substr(0,50))||'无详细内容' }}</div>
    </div>
  </div>
</template>

<script>
import { formatTime } from '@/utils'
export default {
  name: 'CardDescription',
  components: {
    TypeInParty: () => import('@/components/Party/TypeInParty')
  },
  props: {
    data: { type: Object, required: true }
  },
  methods: {
    formatTime
  }
}
</script>
<style lang="scss" scoped>
@import '@/styles/common-list';
.fade-style {
  color: #ccc;
}
.card-item {
  display: flex;
  .card-summary {
    width: 100%;
    .card-summary-decription {
      opacity: 0.6;
      font-size: 0.8rem;
      overflow-wrap: break-word;
    }
    .card-summary-title {
      font-size: 1.2rem;
      overflow: hidden;
    }
  }
  .card-title {
    width: 3.7rem;
  }
}
</style>
